﻿using System.Collections.ObjectModel;
using DotLiquid;
using Unknown.Source.Entity.NormalView;

namespace Unknown.Source.Entity.Coder
{
    /// <summary>
    /// 类描述类
    /// </summary>
    public class ClassDescribe : Drop
    {
        /// <summary>
        /// 命名空间
        /// </summary>
        public string NamespaceMap { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 表
        /// </summary>
        public Table Table { get; set; }
        /// <summary>
        /// 主键属性描述
        /// </summary>
        public PropertyDescribe PrimaryKeyPropertyDescribe { get; set; }
        private Collection<PropertyDescribe> _PropertyDescribes = new Collection<PropertyDescribe>();
        /// <summary>
        /// 属性描述集合
        /// </summary>
        public Collection<PropertyDescribe> PropertyDescribes
        {
            get
            {
                return this._PropertyDescribes;
            }
        }
    }
}
